package com.xqboss.apps.dto.market;

import com.xqboss.apps.dto.PageDto;
import com.xqboss.apps.enums.market.MarketTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *     市场列表(扩展)参数
 * </p>
 * @author Trent
 * @date 2023/8/24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class MarketBoxInfoDto extends PageDto {

    @ApiModelProperty(value = "用户id(app不用传)")
    private Long userId;

    @ApiModelProperty("市场id")
    @NotNull(message = "请输市场ID")
    private Long id;

    @ApiModelProperty(value = "市场类型",required = true)
    @NotNull(message = "请输入市场类型")
    private MarketTypeEnum type;

}
